﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NeuronDotNet.Controls;
using System.Drawing;

namespace ICRWrapper
{
    public class LetterICRWrapper
    {
        List<List<Point>> _userDrawing;
        Letter _letter;

        public Letter Letter { get { return _letter; } }
        public List<List<Point>> Drawing { get { return _userDrawing; } }

        public LetterICRWrapper(List<List<Point>> drawing)
        {
            _userDrawing = drawing;
            Convert();
        }

        private void Convert()
        {
            Letter letter = new Letter();

            foreach(List<Point> line in _userDrawing)
            {
                letter.AddStroke(new Stroke(line, false));
            }

            _letter = letter;
        }
    }
}
